#include <stdio.h>
int main_031(void) 
{
	int one, two, five;
	int x;
	scanf_s("%d", &x);
	for (one = 0 , two = 0 , five = 0; one <= x * 10 || two <= x * 10 / 2 || five <= x * 10 / 5; (one++) || (two++) || (five++)) 
	{
		if (one + two * 2 + five * 5 == x * 10) 
		{
			printf("%d\t%d\t%d\n", one, two, five);
		}
	}
	return 0;
}